package dungeonTools;

import dungeonElements.Square;

/**
 * An interface providing constraints with their required method.
 * That method should return whether or not a certain square matches
 * the specific constraint.
 * 
 * @author Tom Jacobs & Ewoud De Moor
 * @version 3.0
 */
public interface Constraint {
	
	/**
	 * A method returning whether or not the square matches the certain constraint
	 * 
	 * @param square
	 * 			The square to match
	 * @return	True if the constraint is met
	 * 			|if(*some_condition_the_square_must_meet*)
	 * 			|	then result == true
	 * 			False otherwise
	 * 			|else result == false
	 */
	public boolean matchesConstraint(Square square);
}
